<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .father {
            width: 500px;
            height: 400px;
            background-color: burlywood;

            /* 启用弹性布局 */
            display: flex;
            /* 将主轴方向改为垂直方向 */
            /* flex-direction: column; */
            /* 换行 */
            /* flex-wrap: wrap; */
            /* 控制子标签在主轴的排列方式 */
            /* justify-content: center; */
            /* justify-content: space-between; */
            /* 控制单行子标签在交叉轴的排列方式 */
            /* align-items: center; */
            /* 控制多行子标签在交叉轴的排列方式 */
            /* align-content: space-evenly; */
        }

        .child {
            width: 100px;
            height: 100px;
            /* border: 1px solid; */
            background-color: chocolate;
        }

        .child1 {
            /* flex-grow: 1; */
            /* flex-basis: 50%; */
            /* 子标签不被压缩 */
            flex-shrink: 0;
        }

        .child2 {
            /* flex-grow: 1; */
            /* align-self: center; */
            order: -1;
        }
    </style>
</head>

<body>
    <div class="father">
        <div class="child child1">1</div>
        <div class="child child2">2</div>
        <div class="child child3">3</div>
        <div class="child child4">4</div>
        <div class="child child5">5</div>
        <div class="child child6">6</div>
    </div>
</body>

</html>